package com.example.mallmember.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.example.mallmember.controller.vo.MemberLoginVO;
import com.example.mallmember.controller.vo.MemberReigerVO;
import com.example.mallmember.entity.MemberEntity;
import com.example.mallmember.entity.MemberReceiveAddressEntity;
import com.example.mallmember.exception.PhoneExsitExecption;
import com.example.mallmember.exception.UsernameExsitException;

import java.util.List;
import java.util.Map;

/**
 * 会员
 *
 * @author charlie
 * @email @gmail.com
 * @date 2023-11-25 12:57:40
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberReigerVO vo) throws PhoneExsitExecption, UsernameExsitException;

    MemberEntity login(MemberLoginVO vo);

    List<MemberReceiveAddressEntity> getAddress(Long memberId);
}

